home *** CD-ROM | disk | FTP | other *** search
- From: bxiao@msn.com (Bing Xiao)
- Subject: RE: No struct in C++!!?
- Date: 25 Feb 96 05:38:40 -0800
- References: <1996Feb14.151620.5532@queens-belfast.ac.uk>
- Message-ID: <00001a81+0000a7ee@msn.com>
- Path: news.msn.com!msn.com
- Newsgroups: comp.lang.c++
- Organization: The Microsoft Network (msn.com)
-
- a beginners question: I found in different C++ books examples of C++ programms
- which contain type declarations and definitions in the main() programm - for
- example a struct - as in C.
- My question is, whether this is a contradiction
- to the paradigm of C++. Shouldn't be everything in a C++ programm
- either classes, objects or the interaction between objects?
- So is it bad C++ style, to use functions or data outside from
- classes (objects)?
-
- Thanks!
-
- Georg Woeste
-